package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
            String line = "l6y6shuai666gr666";
            String[] data = line.split("[0-9]+");
        System.out.println(Arrays.toString(data));

        line = "ly.is.cool";
        data = line.split("\\.");
        System.out.println(Arrays.toString(data));

        line = ".ly.is..very..cool...........";
        data = line.split("\\.");
        System.out.println(Arrays.toString(data));
    }
}
